#生成server client进行通信测试
CC:=g++

CFLAG := -I ../../../build/release-install-cpp11/include/
#muduo_net 必须先链接，不知道为什么
LFLAG := -L ../../../build/release-install-cpp11/lib -ljsoncpp -lmuduo_net -lmuduo_base -pthread

.PHONY:all

all:rpc_client rpc_server reg_server


rpc_client:rpc_client.cpp
	-${CC} -o $@ $^ ${CFLAG} ${LFLAG} -std=c++11 -g
rpc_server:rpc_server.cpp
	-${CC} -o $@ $^ ${CFLAG} ${LFLAG} -std=c++11 -g

reg_server:registry_server.cpp
	-${CC} -o $@ $^ ${CFLAG} ${LFLAG} -std=c++11 -g

.PHONY:clean

clean:
	-rm -f rpc_client rpc_server reg_server